﻿using System;
using System.Collections.ObjectModel;
using System.Net;
using System.Runtime.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SydEnergiPrototype.Model
{
    public class History : ObservableCollection<IHistoryEntry>{}

    [DataContract]
    public class HistoryEntry : IHistoryEntry
    {
        [DataMember]
        public DateTime Date { get; set; }
        [DataMember]
        public string User { get; set; }
        [DataMember]
        public string Reason { get; set; }
        [DataMember]
        public string Comment { get; set; }

        public HistoryEntry(DateTime date, string user, string reason)
            :this(date, user, reason, "")
        {}

        public HistoryEntry(DateTime date, string user, string reason, string comment)
        {
            Date = date;
            User = user;
            Reason = reason;
            Comment = comment;
        }

        public HistoryEntry(){}

    }
}
